﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Areas.Administrator.Models.Student>" %>
<%@ Import Namespace="CollegeWebsite.Areas.Administrator.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentID) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentID) %>
                <%= Html.ValidationMessageFor(model => model.StudentID) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentName) %>
                <%= Html.ValidationMessageFor(model => model.StudentName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FatherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FatherName) %>
                <%= Html.ValidationMessageFor(model => model.FatherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.MotherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.MotherName) %>
                <%= Html.ValidationMessageFor(model => model.MotherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateOfBirth) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateOfBirth) %>
                <%= Html.ValidationMessageFor(model => model.DateOfBirth) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Gender) %>
            </div>
            <div class="editor-field">
                <%= Html.RadioButtonFor(model => model.Gender,true) %> <%= Html.RadioButtonFor(model => model.Gender,false) %>
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.AdmissionID) %>
            </div>
            <div class="editor-field">
            
              <%--  <%= Html.DropDownListFor(c=>c.AdmissionID,List<Course>)  %>
                <%= Html.TextBoxFor(model => model.AdmissionID) %>
                <%= Html.ValidationMessageFor(model => model.AdmissionID) %>--%>
            </div>
            
            <%--<div class="editor-label">
                <%= Html.LabelFor(model => model.PreviousInfomation) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PreviousInfomation) %>
                <%= Html.ValidationMessageFor(model => model.PreviousInfomation) %>
            </div>--%>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SupportDetails) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SupportDetails) %>
                <%= Html.ValidationMessageFor(model => model.SupportDetails) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.CheckBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

